<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

if ( !defined( "IN_DISCUZ" ) )
{
				exit( "Access Denied" );
}
$reg_wow_sw = $_DPLUGIN[wow_register][vars][reg_wow_sw];
if ( $reg_wow_sw == "" )
{
				$reg_wow_sw = 0;
}
$localdb = $_DPLUGIN[wow_register][vars][localdb];
if ( $localdb == "" )
{
				$localdb = 1;
}
$localdb_ax = $_DPLUGIN[wow_register][vars][localdb_ax];
if ( $localdb_ax == "" )
{
				$localdb_ax = 1;
}
$give_gold_sw = $_DPLUGIN[wow_register][vars][give_gold_sw];
if ( $give_gold_sw == "" )
{
				$give_gold_sw = 0;
}
$send_gold_sw = $_DPLUGIN[wow_register][vars][send_gold_sw];
if ( $send_gold_sw == "" )
{
				$send_gold_sw = 0;
}
$send_wp_sw = $_DPLUGIN[wow_register][vars][send_wp_sw];
if ( $send_wp_sw == "" )
{
				$send_wp_sw = 0;
}
$extcredits_gold = $_DPLUGIN[wow_register][vars][extcredits_gold];
if ( $extcredits_gold == "" )
{
				$extcredits_gold = 2;
}
$extcredits_rmb = $_DPLUGIN[wow_register][vars][extcredits_rmb];
if ( $extcredits_rmb == "" )
{
				$extcredits_rmb = 4;
}
$extcredits_reg_acc = $_DPLUGIN[wow_register][vars][extcredits_reg_acc];
if ( $extcredits_reg_acc == "" )
{
				$extcredits_reg_acc = 2;
}
$acc_need_gold = $_DPLUGIN[wow_register][vars][acc_need_gold];
if ( $acc_need_gold == "" )
{
				$acc_need_gold = 100;
}
$rmb2gold = $_DPLUGIN[wow_register][vars][rmb2gold];
if ( $rmb2gold == "" )
{
				$rmb2gold = 1;
}
$day_give_gold = $_DPLUGIN[wow_register][vars][day_give_gold];
if ( $day_give_gold == "" )
{
				$day_give_gold = 10;
}
$level1 = $_DPLUGIN[wow_register][vars][level1];
if ( $level1 == "" )
{
				$level1 = 16;
}
$level2 = $_DPLUGIN[wow_register][vars][level2];
if ( $level2 == "" )
{
				$level2 = 17;
}
$level3 = $_DPLUGIN[wow_register][vars][level3];
if ( $level3 == "" )
{
				$level3 = 18;
}
$level4 = $_DPLUGIN[wow_register][vars][level4];
if ( $level4 == "" )
{
				$level4 = 19;
}
$level1_zekou = $_DPLUGIN[wow_register][vars][level1_zekou];
if ( $level1_zekou == "" )
{
				$level1_zekou = 0.9;
}
$level2_zekou = $_DPLUGIN[wow_register][vars][level2_zekou];
if ( $level2_zekou == "" )
{
				$level2_zekou = 0.8;
}
$level3_zekou = $_DPLUGIN[wow_register][vars][level3_zekou];
if ( $level3_zekou == "" )
{
				$level3_zekou = 0.7;
}
$level4_zekou = $_DPLUGIN[wow_register][vars][level4_zekou];
if ( $level4_zekou == "" )
{
				$level4_zekou = 0.6;
}
$give_gold_hose = $_DPLUGIN[wow_register][vars][give_gold_hose];
if ( $give_gold_hose <= 0 || $give_gold_hose == "" )
{
				$give_gold_hose = 24;
}
if ( !$_SESSION['locale'] )
{
				$_SESSION['locale'] = $_DPLUGIN[wow_register][vars][lang];
}
if ( $_SESSION['locale'] )
{
}
if ( !file_exists( DISCUZ_ROOT."plugins/".$directory."lang/".$_SESSION['locale'].".php" ) )
{
				require( DISCUZ_ROOT."plugins/".$directory."lang/zhCN.php" );
}
else
{
				require( DISCUZ_ROOT."plugins/".$directory."lang/".$_SESSION['locale'].".php" );
}
$shop_page = $_DPLUGIN[wow_register][vars][shop_page];
if ( $shop_page == "" )
{
				$shop_page = 15;
}
$sn = trim( $_DPLUGIN[wow_register][vars][sn] );
$database_encoding = $_DPLUGIN[wow_register][vars][database_encoding];
if ( $database_encoding == "" )
{
				$database_encoding = "utf-8";
}
$wow_login_down = $_DPLUGIN[wow_register][vars][wow_login_down];
if ( $wow_login_down == "" )
{
				$wow_login_down = "/wow_login.rar";
}
$wow_Client = $_DPLUGIN[wow_register][vars][wow_Client];
if ( $wow_Client == "" )
{
				$wow_Client = "与官方同步";
}
$qq = $_DPLUGIN[wow_register][vars][qq];
if ( $qq == "" )
{
				$qq = "请在后台设置";
}
$helpinfo = $_DPLUGIN[wow_register][vars][helpinfo];
if ( $helpinfo == "" )
{
				$helpinfo = "请在后台扩展设置-插件设置-插件参数设置-帮助信息中修改，添加";
}
$huikuan = $_DPLUGIN[wow_register][vars][huikuan];
if ( $huikuan == "" )
{
				$huikuan = "请在后台扩展设置-插件设置-插件参数设置-帮助信息中修改，添加";
}
$send_tf_sw = $_DPLUGIN[wow_register][vars][send_tf_sw];
if ( $send_tf_sw == "" )
{
				$send_tf_sw = 0;
}
$rmb2tf = $_DPLUGIN[wow_register][vars][rmb2tf];
if ( $rmb2tf == "" )
{
				$rmb2tf = 100;
}
$extcredits_tf = $_DPLUGIN[wow_register][vars][extcredits_tf];
if ( $extcredits_tf == "" )
{
				$extcredits_tf = 4;
}
$send_sw_sw = $_DPLUGIN[wow_register][vars][send_sw_sw];
if ( $send_sw_sw == "" )
{
				$send_sw_sw = 0;
}
$rmb2sw = $_DPLUGIN[wow_register][vars][rmb2sw];
if ( $rmb2sw == "" )
{
				$rmb2sw = 1;
}
$extcredits_sw = $_DPLUGIN[wow_register][vars][extcredits_sw];
if ( $extcredits_sw == "" )
{
				$extcredits_sw = 4;
}
$hanhua_sw = $_DPLUGIN[wow_register][vars][hanhua_sw];
if ( $hanhua_sw == "" )
{
				$hanhua_sw = 1;
}
$extcredits_hanhua = $_DPLUGIN[wow_register][vars][extcredits_hanhua];
if ( $extcredits_hanhua == "" )
{
				$extcredits_hanhua = 10;
}
$extcredits_acc = $_DPLUGIN[wow_register][vars][extcredits_acc];
if ( $extcredits_acc == "" )
{
				$extcredits_acc = 1;
}
$reg_dkp_sw = $_DPLUGIN[wow_register][vars][reg_dkp_sw];
if ( $reg_dkp_sw == "" )
{
				$reg_dkp_sw = 0;
}
$dkp_qianzhui = $_DPLUGIN[wow_register][vars][dkp_qianzhui];
if ( $dkp_qianzhui == "" )
{
				$dkp_qianzhui = "eqdkp_";
}
$go2_server_sw = $_DPLUGIN[wow_register][vars][go2_server_sw];
if ( $go2_server_sw == "" )
{
				$go2_server_sw = 1;
}
$online_play = $_DPLUGIN[wow_register][vars][online_play];
if ( $online_play == "" )
{
				$online_play = 120;
}
$novip_time = $_DPLUGIN[wow_register][vars][novip_time];
if ( $novip_time == "" )
{
				$novip_time = 24;
}
$acc_tbc = $_DPLUGIN[wow_register][vars][acc_tbc];
if ( $acc_tbc == "" )
{
				$acc_tbc = 1;
}
$vip_jh_tbc = $_DPLUGIN[wow_register][vars][vip_jh_tbc];
if ( $vip_jh_tbc == "" )
{
				$vip_jh_tbc = 1;
}
$server_sw = $_DPLUGIN[wow_register][vars][server_sw];
if ( $server_sw == "" )
{
				$server_sw = 9;
}
$mangos_name = $_DPLUGIN[wow_register][vars][mangos_name];
if ( $mangos_name == "" )
{
				$mangos_name = "MG";
}
if ( $mangos_name == " " )
{
				$mangos_name = "";
}
$antrix_name = $_DPLUGIN[wow_register][vars][antrix_name];
if ( $antrix_name == "" )
{
				$antrix_name = "AX";
}
if ( $antrix_name == " " )
{
				$antrix_name = "";
}
$ping_sw = $_DPLUGIN[wow_register][vars][ping_sw];
if ( $ping_sw == "" )
{
				$ping_sw = 1;
}
$server_list = $_DPLUGIN[wow_register][vars][server_list];
if ( $server_list == "" )
{
				$server_list = 2;
}
$vip_field_as = $_DPLUGIN[wow_register][vars][vip_field_as];
if ( $vip_field_as == "" )
{
				$vip_field_as = "vip";
}
$web_user = $_DPLUGIN[wow_register][vars][web_user];
if ( $web_user == "" )
{
				$web_user = 1;
}
switch ( $_DPLUGIN[wow_register][vars][icon] )
{
case "1" :
				$iconurl = "http://wow.allakhazam.com/images/icons/";
				$iconimg = ".png";
				break;
case "2" :
				$iconurl = "http://i.thottbot.com/en/Interface/Icons/";
				$iconimg = ".jpg";
				break;
case "3" :
				$iconurl = "./images/wow_register/img/interface/icons/";
				$iconimg = ".png";
				break;
default :
				$iconurl = "http://wow.allakhazam.com/images/icons/";
				$iconimg = ".png";
}
$conn_group = $_DPLUGIN[wow_cr_world][vars][conn_group];
if ( $conn_group == "" )
{
				$conn_group = 1;
}
$ax_softver = $_DPLUGIN[wow_cr_world][vars][ax_softver];
if ( $ax_softver == "" )
{
				$ax_softver = "未知";
}
$ax_sqlver = $_DPLUGIN[wow_cr_world][vars][ax_sqlver];
if ( $ax_sqlver == "" )
{
				$ax_sqlver = "未知";
}
$game_db_tablepre = $_DPLUGIN[wow_cr_world][vars][game_db_tablepre];
if ( $game_db_tablepre == "" )
{
				$game_db_tablepre = "sym_";
}
$cr_credits_rate = $_DPLUGIN[wow_cr_world][vars][cr_credits_rate];
if ( $cr_credits_rate == "" )
{
				$cr_credits_rate = "1000";
}
$search_set = $_DPLUGIN[wow_cr_world][vars][search_set];
if ( $search_set == "" )
{
				$search_set = "1";
}
switch ( $search_set )
{
case "1" :
				$search_where = "cflags=1&";
				break;
case "2" :
				$search_where = "cflags=2&";
				break;
default :
				$search_where = "cflags=0&";
}
$sql_search_limit = $_DPLUGIN[wow_cr_world][vars][sql_search_limit];
if ( $sql_search_limit == "" )
{
				$sql_search_limit = "50";
}
$mg_sqlver = "600";
$mg_softver = "6000";
$today = date( " y-m-j h-i" );
$max_npcs_entry = 100000;
$max_items_entry = 100000;
$max_quest_entry = 100000;
$max_objs_entry = 20000000;
?>
